<template>
  <!-- 楼层标题图片 -->
    <view class="floorItem" v-if="item">
      <u-image :src="item.floor_title.image_src" mode="widthFix"></u-image>
      <!-- 楼层大盒子 -->
      <view class="productList">
        <!-- 楼层左边单张大图 -->
        <view class="left">
          <u-image :src="item.product_list[0].image_src" mode="widthFix" class="prodImg" :width="item.product_list[0].image_width"></u-image>
        </view>
        <!-- 楼层右边四张小图 -->
        <view class="right">
          <u-image :src="item.product_list[1].image_src" mode="scaleToFill" class="prodImg" :width="233" :height="188"></u-image>
          <u-image :src="item.product_list[2].image_src" mode="scaleToFill" class="prodImg" :width="233" :height="188"></u-image>
          <u-image :src="item.product_list[3].image_src" mode="scaleToFill" class="prodImg" :width="233" :height="188"></u-image>
          <u-image :src="item.product_list[4].image_src" mode="scaleToFill" class="prodImg" :width="233" :height="188"></u-image>
        </view>
      </view>
    </view>
</template>

<script>
    export default {
      props:{
        item:{
            type:Object,
            required:true
        }
      }
    };
</script>

<style lang="scss" scoped>
.floorItem{
    padding: 0rpx 0rpx 50rpx 0rpx;
    .productList{
      display: flex;
      padding: 0rpx 0rpx 0rpx 10rpx;
     .right{
       display:flex;
       flex-wrap: wrap;
       justify-content: space-evenly;
       border-radius: 100rpx;
    }
   }
  }
</style>